<%@ page import="java.util.Arrays" %><%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2024/1/22
  Time: 09:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>过去的写法</h2>
<%
    request.setCharacterEncoding("utf-8");
    String name = request.getParameter("name");
    String password = request.getParameter("password");
    String gender = request.getParameter("gender");
    String birthday = request.getParameter("birthday");
    String weight = request.getParameter("weight");
    String[] loves = request.getParameterValues("loves");
    out.print(name+"<br/>");
    out.print(password+"<br/>");
    out.print(gender+"<br/>");
    out.print(birthday+"<br/>");
    out.print(weight+"<br/>");
    out.print(Arrays.toString(loves) +"<br/>");
%>
<h2>EL的写法</h2>
${param.name}<br/>
${param.password}<br/>
${param.gender}<br/>
${param.birthday}<br/>
${param.weight}<br/>
${paramValues.loves}
</body>
</html>